package cn.edu.ncu.housinghub.dto.request.contract;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ContractVerifyRequest {
    @NotNull(message = "房东不能为空")
    private Long landlordId;
    @NotNull(message = "合同不能为空")
    private Long contractId;
    @NotNull(message = "合同状态不能为空")
    @Min(value = 1, message = "合同状态无效")//1:同意 2:拒绝
    @Max(value = 2, message = "合同状态无效")
    private Integer signStatus;

    @Size(max = 255, message = "拒绝原因过长")
    private String refuseReason;
}
